package com.example.lt.entity.user;

import com.baomidou.mybatisplus.annotation.TableField;
import com.example.lt.entity.BaseEntity;
import lombok.Data;
import lombok.EqualsAndHashCode;

import java.util.List;

/**
 * @Author 小涛Tao
 * @Date: 2024/08/16/17:58
 * version 1.0 注释：权限表
 **/
@Data
@EqualsAndHashCode(callSuper = false)
public class Permission extends BaseEntity {

    private static final long serialVersionUID = 1L;

    private Long pId; // 父菜单id

    private String path; // 访问路径

    private String href; // href

    private String icon; // 图标

    private String name; // 名称

    private Integer isMenu; // -1：菜单  0：目录  1：按钮

    private String target;

    private Integer sort;

    private Integer state;

    @TableField(exist = false)
    private List<Permission> children; // 子节点集合

}
